package com.chennan.spring.demo.xml;

import com.chennan.spring.modal.Person;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author chennan
 * @create 2021-11
 */
public class XmlTest {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("application111.xml");

        Person person = (Person)app.getBean("person");
        System.out.println(person.getName()+person.getAge());
    }
}
